package com.zf.seata.seataorder.controller;

import com.zf.common.core.result.RestResponse;
import com.zf.seata.seataorder.service.ProdOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhou Feng
 */
@RestController
@RequestMapping(value = "/order")
public class ProdOrderController {
    @Autowired
    private ProdOrderService prodOrderService;

    @GetMapping("/testSeata")
    public RestResponse<?> testSeata() throws Throwable {
        prodOrderService.testSeata();
        return RestResponse.success();
    }
}
